/***    
request.globalRequest(url,请求方式,obj数据,123,true单,true 多array) url, method, data, power, isUpload, isFiles
1===没登录前的请求头
2===携带请求头token
3===刷新token
***/
import request from '@/util/network_request/request.ts'
const apiAddress={}
// 获取地址
apiAddress.address = () => request.globalRequest({url:`/address/`, method:'get'})
// 获取客户登记地址列表
apiAddress.getUserRegisterAddressList = (data) => request.globalRequest({url:`/mobile/network/account/getNetworkEmpAddressList`, method:'post',data,power:2})
//新增或修改联系人地址
apiAddress.saveUserContactAddress = (data) => request.globalRequest({url:`/mobile/network/account/saveNetworkEmpaddress`, method:'post',data,power:2})
// 删除联系人地址
apiAddress.deleteUserContactAddress = (id) => request.globalRequest({url:`/mobile/network/account/deleteNetworkEmpAddress/`+id, method:'DELETE',power:2})
export default apiAddress